Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Response.InputStreamBody missing toString implementation #1022

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

tomdaly
Copy link
Contributor

@tomdaly tomdaly commented Jul 29, 2019

Fixes #981

Issue stated that an incorrect value was printed for the Response class when different log levels (DEBUG, INFO) where used - the problem was not due to log level, only that when Response.toString() is called it calls the toString() function of it's member variable body, and the body can be either InputStreamBody or ByteArrayBody.

ByteArrayBody's overloaded toString() function already exists and uses functions from the Util class, and this commit follows by using more functions of the Util class to implement a proper toString() implementation.

@kdavisk6 kdavisk6 added this to the 10.2.4 milestone Jul 31, 2019
Copy link
Member

@kdavisk6 kdavisk6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomdaly

Thanks for submitting this PR. I've approved this PR and marked it ready to merge. If there are no additional comments from other reviewers in the next few days, I'll merge this change.

@kdavisk6 kdavisk6 added the ready to merge Will be merged if no other member ask for changes label Jul 31, 2019
@kdavisk6 kdavisk6 merged commit 0a0ff3f into OpenFeign:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Will be merged if no other member ask for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response toString()-method behaves differently based on loglevel
2 participants